home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NOVA - For the NeXT Workstation
/
NOVA - For the NeXT Workstation.iso
/
SourceCode
/
MiniExamples
/
ImageText
/
GraphicImage.h
< prev
next >
Wrap
Text File
|
1992-12-19
|
852b
|
32 lines
// GraphicImage.h
// By Jayson Adams
// NeXT Strategic Developer Engineer
//
// You may freely copy, distribute and reuse the code in this example.
// NeXT disclaims any warranty of any kind, expressed or implied, as to its
// fitness for any particular use.
#import <objc/Object.h>
#import <appkit/graphics.h>
#import <dpsclient/event.h>
@interface GraphicImage:Object
{
id image;
BOOL highlighted;
}
/* instance methods */
- initForImage:anImage;
- free;
- calcCellSize:(NXSize *)theSize;
- highlight:(const NXRect *)cellFrame inView:controlView lit:(BOOL)flag;
- drawSelf:(const NXRect *)cellFrame inView:controlView;
- trackMouse:(NXEvent *)theEvent inRect:(const NXRect *)cellFrame
ofView:controlView;
- readRichText:(NXStream *)stream forView:view;
- writeRichText:(NXStream *)stream forView:view;
- performDoubleClickAction;
@end